<?php
apf_require_class('DAO_DAO');
class Dao_Attendance_Apps extends DAO {

    public function get_table_name() {
        return "apps";
    }

    public function get_read_pdo_name() {
        return "attendance_slave";
    }

    public function get_write_pdo_name() {
        return "attendance_master";
    }

    public function get_table_pk() {
        return "id";
    }

    /**
     * 获得app列表
     * @param unknown_type $ids
     */
    public function get_apps($ids) {
        $result = array();
        if(!empty($ids)) {
            $result = $this->find_by_ids($ids);
        }
        ksort($result);
        return $result;
    }
}